﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Default.aspx.cs" Inherits="WWW.Default" MasterPageFile="~/Masters/Analytics.Master" %>
<%@ Import Namespace="WWW"%>
<%@ Import Namespace="Google.Analytics.Model.Feeds"%>

<asp:Content ID="main" ContentPlaceHolderID="main" runat="server">

    <ez:AccountsDropDown ID="Accounts" DataTextField="AccountName" DataValueField="AccountID" runat="server">
        <Authentication UserName="<%$ AppSettings: username %>" Password="<%$ AppSettings: password %>" />
    </ez:AccountsDropDown>
    <br /><br />
    

        <ez:AnalyticsGraph ID="analyticsGraph" Metrics="Visits" Dimensions="Week" ImageType="Png" ImageLocation="~/Images/test" runat="server" AccountID="<%$ AppSettings: accountID %>">
            <Authentication UserName="<%$ AppSettings: username %>" Password="<%$ AppSettings: password %>" />
            <titles>
				<asp:Title ShadowColor="32, 0, 0, 0" Font="Trebuchet MS, 14.25pt, style=Bold" ShadowOffset="3" Text="Visits in the last 6 weeks" ForeColor="26, 59, 105"></asp:Title>
			</titles>
			<legends>
				<asp:Legend Enabled="False" IsTextAutoFit="False" Name="Default" BackColor="Transparent" Font="Trebuchet MS, 8.25pt, style=Bold"></asp:Legend>
			</legends>
			<borderskin SkinStyle="Emboss"></borderskin>
			<chartareas>
				<asp:ChartArea Name="ChartArea1" BorderColor="64, 64, 64, 64" BackSecondaryColor="Transparent" BackColor="64, 165, 191, 228" ShadowColor="Transparent" BackGradientStyle="TopBottom">
					<area3dstyle Rotation="0" Perspective="10" Enable3D="True" Inclination="15" IsRightAngleAxes="False" WallWidth="0" IsClustered="False" />

				</asp:ChartArea>
			</chartareas>
            <Series>
                <asp:Series Color="Green" BorderColor="Gray" />
            </Series>
        </ez:AnalyticsGraph>
        
        <ez:AnalyticsGraph ID="analyticsGraph2" Metrics="Visits, Bounces, Visitors" Dimensions="Week" ImageType="Png" ImageLocation="~/Images/test" runat="server" AccountID="<%$ AppSettings: accountID %>">
            <Authentication UserName="<%$ AppSettings: username %>" Password="<%$ AppSettings: password %>" />
            <legends>
				<asp:Legend BackColor="Transparent" Alignment="Center" Docking="Bottom" Font="Trebuchet MS, 8.25pt, style=Bold" IsTextAutoFit="False" Name="Default" LegendStyle="Row"></asp:Legend>
			</legends>
            <Series>
                <asp:Series ChartType="Line" Name="Visitors" Color="Aqua" BorderColor="Gray" />
                <asp:Series ChartType="Line" name="Bounces" Color="Blue" BorderColor="Gray" />

            </Series>
            <ChartAreas>
                <asp:ChartArea Name="ChartArea1" BorderColor="64, 64, 64, 64" BorderDashStyle="Solid" BackSecondaryColor="White" BackColor="OldLace" ShadowColor="Transparent" BackGradientStyle="TopBottom">
                									<axisy LineColor="64, 64, 64, 64">
										<LabelStyle Font="Trebuchet MS, 8.25pt, style=Bold" />
										<MajorGrid LineColor="64, 64, 64, 64" />
									</axisy>
									<axisx LineColor="64, 64, 64, 64">
										<LabelStyle Font="Trebuchet MS, 8.25pt, style=Bold" />
										<MajorGrid LineColor="64, 64, 64, 64" />
									</axisx>
                </asp:ChartArea>
            </ChartAreas>
        </ez:AnalyticsGraph>
        
        <ez:AnalyticsGraph ID="analyticsGraph3" Metrics="Visits" Dimensions="Week" ImageType="Png" ImageLocation="~/Images/test" runat="server" AccountID="<%$ AppSettings: accountID %>">
            <Authentication UserName="<%$ AppSettings: username %>" Password="<%$ AppSettings: password %>" />
			<legends>
				<asp:Legend BackColor="Transparent" Alignment="Center" Docking="Bottom" Font="Trebuchet MS, 8.25pt, style=Bold" IsTextAutoFit="False" Name="Default" LegendStyle="Row"></asp:Legend>
			</legends>
            <Series>
                <asp:Series ChartType="Doughnut" Color="Blue" BorderColor="Gray" />
            </Series>
			<chartareas>
				<asp:ChartArea Name="ChartArea1" BorderColor="64, 64, 64, 64" BackSecondaryColor="Transparent" BackColor="Transparent" ShadowColor="Transparent" BorderWidth="0">
					<area3dstyle Rotation="10" Perspective="10" Enable3D="True" Inclination="15" IsRightAngleAxes="False" WallWidth="0" IsClustered="False" />
					<axisy LineColor="64, 64, 64, 64">
						<LabelStyle Font="Trebuchet MS, 8.25pt, style=Bold" />
						<MajorGrid LineColor="64, 64, 64, 64" />
					</axisy>
					<axisx LineColor="64, 64, 64, 64">
						<LabelStyle Font="Trebuchet MS, 8.25pt, style=Bold" />
						<MajorGrid LineColor="64, 64, 64, 64" />
					</axisx>
				</asp:ChartArea>
			</chartareas>
        </ez:AnalyticsGraph>
        
        <ez:AnalyticsGraph ID="analyticsGraph1" Metrics="Visits, Visitors" Dimensions="Week" ImageType="Png" ImageLocation="~/Images/test" runat="server" AccountID="<%$ AppSettings: accountID %>">
            <Authentication UserName="<%$ AppSettings: username %>" Password="<%$ AppSettings: password %>" />
			<legends>
				<asp:Legend BackColor="Transparent" Alignment="Far" Docking="Top" Font="Trebuchet MS, 8.25pt, style=Bold" IsTextAutoFit="False" Name="Default" LegendStyle="Row"></asp:Legend>
			</legends>
            <Series>
                <asp:Series Name="Visits" ChartType="Area" Color="Blue" BorderColor="Gray" />
                <asp:Series Name="Visitors" ChartType="Area" Color="Red" BorderColor="Gray" />
            </Series>
			<chartareas>
				<asp:ChartArea BorderColor="64, 64, 64, 64" BackSecondaryColor="Transparent" BackColor="Transparent" ShadowColor="Transparent" BorderWidth="0">
				    <Area3DStyle Enable3D="true" Inclination="50" />
					<axisy LineColor="64, 64, 64, 64">
						<LabelStyle Font="Trebuchet MS, 8.25pt, style=Bold" />
						<MajorGrid LineColor="64, 64, 64, 64" />
					</axisy>
					</asp:ChartArea>
			</chartareas>
        </ez:AnalyticsGraph>
        
        <ez:AnalyticsGraph ID="analyticsGraph4" ImageType="Png" Metrics="Visits" Dimensions="Day" ImageLocation="~/Images/test" runat="server" AccountID="<%$ AppSettings: accountID %>">
            <Authentication UserName="<%$ AppSettings: username %>" Password="<%$ AppSettings: password %>" />
			<legends>
				<asp:Legend BackColor="Transparent" Alignment="Far" Docking="Top" Font="Trebuchet MS, 8.25pt, style=Bold" IsTextAutoFit="False" Name="Default" LegendStyle="Row"></asp:Legend>
			</legends>
            <Series>
                <asp:Series Name="Visits" ChartType="Spline" MarkerSize="8" BorderWidth="3" MarkerStyle="Circle" 
                ShadowColor="Black" BorderColor="180, 26, 59, 105" Color="220, 65, 140, 240" ShadowOffset="2" />
            </Series>
			    <chartareas>
				    <asp:ChartArea Name="ChartArea1" BorderColor="64, 64, 64, 64" BorderDashStyle="Solid" BackSecondaryColor="White" BackColor="OldLace" ShadowColor="Transparent" BackGradientStyle="TopBottom">
					    <area3dstyle Rotation="25" Perspective="9" LightStyle="Realistic" Inclination="40" IsRightAngleAxes="False" WallWidth="3" IsClustered="False" />
					    <axisy LineColor="64, 64, 64, 64">
						    <LabelStyle Font="Trebuchet MS, 8.25pt, style=Bold" />
						    <MajorGrid LineColor="64, 64, 64, 64" />
					    </axisy>
					    <axisx LineColor="64, 64, 64, 64" Title="Last Week">
						    <LabelStyle Font="Trebuchet MS, 8.25pt, style=Bold" />
						    <MajorGrid LineColor="64, 64, 64, 64" />
					    </axisx>
				    </asp:ChartArea>
			    </chartareas>
        </ez:AnalyticsGraph>
        
        <br /><br />
        <ez:AnalyticsGrid ID="analyticsGrid" Metrics="Visitors,Visits" Dimensions="Year" runat="server" AccountID="<%$ AppSettings: accountID %>" StartDate="01/01/2006">
            <Authentication UserName="<%$ AppSettings: username %>" Password="<%$ AppSettings: password %>" />
            <HeaderTemplate><table></HeaderTemplate>
            <ItemTemplate>
                <tr>
                <td><%# ((DataEntry)Container.DataItem).Dimensions[0].Name %><br /> <%# ((DataEntry)Container.DataItem).Dimensions[0].Value %></td>
                <td><%# ((DataEntry)Container.DataItem).Metrics[0].Name%><br /> <%# ((DataEntry)Container.DataItem).Metrics[0].Value %></td>
                <td><%# ((DataEntry)Container.DataItem).Metrics[0].Name%><br /> <%# ((DataEntry)Container.DataItem).Metrics[1].Value %></td>
                </tr>
            </ItemTemplate>
            <FooterTemplate></table></FooterTemplate>
        </ez:AnalyticsGrid>
        <br /><br />
        <asp:Button ID="btnrebind" Text="ReBind" OnClick="Rebind" runat="server" />
        <br /><br />
        <div class="panel">
            <h3>Metrics</h3>
            <ez:MetricsDropDown ID="Metrics" Groups="Visitor,Campaign" runat="server" />
        </div>
        <div class="panel">
            <h3>Dimensions</h3>
            <ez:DimensionsDropDown ID="Dimensions" Groups="Visitor" runat="server" />
        </div>
</asp:Content>
